package com.effectiv.gooruda.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import com.effectiv.gooruda.domain.SocialProvider;
import com.effectiv.gooruda.domain.TenantCompany;

@Repository
public interface SocialProviderRepository extends MongoRepository<SocialProvider, String>{
	
	List<SocialProvider> findByTenantCompanyAndType(TenantCompany tenantCompany, String type); 
	SocialProvider findByProviderKey(String key);
}
